headerbar: fix leak of start_box/end_box
authorAlan Jenkins <alan.christopher.jenkins@gmail.com>
Wed, 12 Oct 2016 17:03:43 +0000 (18:03 +0100)
committerMatthias Clasen <mclasen@redhat.com>
Thu, 13 Oct 2016 13:39:01 +0000 (09:39 -0400)
commit8ef4f7fd749bec85b2a6ec3602854fd769507c46
treeeffca9009f128b288e35b40f260b938faecf9212
parent8aa9339b2d7aab7e9c99d46d569f81aa9de7f26f
headerbar: fix leak of start_box/end_box

gtk_widget_destroy() removes widgets from their container.  However
_internal_ widgets must be unref'ed using gtk_widget_unparent() instead.
This is symmetric with the fact that these widgets were ref'ed by direct
call to gtk_widget_set_parent().  It's also the method that was used in
gtk_headerbar_destroy().

https://bugzilla.gnome.org/show_bug.cgi?id=772859
gtk/gtkheaderbar.c